import request from '@/utils/request'

// 查询原材料投入列表
export function listMaterialInputs(query) {
  return request({
    url: '/materialInputs/materialInputs/list',
    method: 'get',
    params: query
  })
}

// 查询原材料投入详细
export function getMaterialInputs(id) {
  return request({
    url: '/materialInputs/materialInputs/' + id,
    method: 'get'
  })
}

// 新增原材料投入
export function addMaterialInputs(data) {
  return request({
    url: '/materialInputs/materialInputs',
    method: 'post',
    data: data
  })
}

// 修改原材料投入
export function updateMaterialInputs(data) {
  return request({
    url: '/materialInputs/materialInputs',
    method: 'put',
    data: data
  })
}

// 删除原材料投入
export function delMaterialInputs(id) {
  return request({
    url: '/materialInputs/materialInputs/' + id,
    method: 'delete'
  })
}

// 导出原材料投入
export function exportMaterialInputs(query) {
  return request({
    url: '/materialInputs/materialInputs/export',
    method: 'get',
    params: query
  })
}